package java_thinking.unit_10._10_4.Exercise6;

import java_thinking.unit_10._10_4.Exercise6.P1.SimpleInterface;
import java_thinking.unit_10._10_4.Exercise6.P2.SimpleClass;

/**
 * @Description : 继承SimpleClass,并在一个方法中返回该protected内部类对象，在返回时向上转型为接口类型；
 * @author: cww
 * @DateTime: 2019-03-09 21:56
 */

public class ProtectInnerClass extends SimpleClass{
    public SimpleInterface getInner(){
        return new Inner();
    }

    public static void main(String[] args) {
        new ProtectInnerClass().getInner().f();
    }
}
